package info.ask4research.model.activities;

import info.ask4research.model.roles.Role;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.OneToOne;

import org.codehaus.jackson.annotate.JsonAutoDetect;
import org.hibernate.annotations.LazyCollection;
import org.hibernate.annotations.LazyCollectionOption;

@Entity
@DiscriminatorValue("OneToTwoActivity")
@JsonAutoDetect
public class OneToTwoActivity extends Activity{

	@LazyCollection(LazyCollectionOption.FALSE)
	@OneToOne(optional=true)
	private Role selectedUser = new Role();

	public Role getSelectedUser() {
		return selectedUser;
	}

	public void setSelectedUser(Role selectedUser) {
		this.selectedUser = selectedUser;
	}


	
}
